package cn.edu.scau.cmi.luotiansheng_chapter5;

public class Example5_8 {
	public static void main(String[] args) {
		int result=Sum.getContinueSum(0,100);
		System.out.println(result);
	}
}

class Sum{
	int x,y,z;
	static int getContinueSum(int start,int end) {
		int sum=0;
		for(int i=start;i<=end;i++) {
			sum+=i;
		}
		return sum;
	}
	
}